package com.example.service;

import dev.langchain4j.model.chat.ChatLanguageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AiService {
    @Autowired
    private ChatLanguageModel chatLanguageModel;

    public String aiAnswer(String name) {
        String generate = chatLanguageModel.generate("name");
        return generate;
    }
}
